<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">

window.onload = function(){
	/*
	var a = 10;
	function show(){
		alert(a);
	}
	*/


	window.c = 10;

/*
	setTimeout(function(){
		show();
	},500000000);
*/
}
setTimeout(function(){
	alert(c)
},100)
</script>
</body>
</html>